home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / cagd_lib / makefile.ami < prev    next >
Encoding:
Makefile  |  1993-12-30  |  5.0 KB  |  171 lines

  1. #
  2. # This is the make file for the cagd_lib library.
  3. #
  4. #                Gershon Elber, Aug 1990
  5. #
  6.  
  7. #-----
  8. #
  9. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  10. # is sourced from several directories relative path specification will
  11. # be simple wrong.
  12. #
  13.  
  14. SRC_DIR = Work:T/Irit
  15. #
  16. # All libraries created will be installed into the LIB_DIR directory.
  17. #
  18. LIB_DIR = $(SRC_DIR)/lib
  19.  
  20. #
  21. # All includes files associated with the installed libraries will be
  22. # installed into the INC_DIR directory.
  23. #
  24. INC_DIR = $(SRC_DIR)/inc
  25.  
  26. #
  27. # All binaries created will be installed into the BIN_DIR directory.
  28. #
  29. BIN_DIR = $(SRC_DIR)/bin
  30.  
  31. #
  32. # Uncomment the correct set of variables to be used or modify it for
  33. # your system.
  34. #
  35. # -D flags:
  36. #
  37. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  38. #
  39. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  40. #    be used.
  41. #
  42. #  Emulation to the following function are available by defining the
  43. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  44. # -DGETCWD - if getcwd is not defined in this system.
  45. # -DSTRSTR - if strstr is not defined in this system.
  46. # -DSTRDUP - if strdup is not defined in this system.
  47. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  48. #
  49. # -DTIMES - if times is defined in your system, otherwise uses time.
  50. #
  51. # -DRAND - if the (s)rand random number generator exists.
  52. # -DRAND48 - ?rand48 random number generators exists.
  53. #    If non of RAND or RAND48 are defined, (s)random is used.
  54. #
  55. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  56. #
  57. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  58. #    varargs.h.
  59. #
  60. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  61. #
  62. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  63. #
  64. # Other, possibly useful defines (for c code development):
  65. #
  66. # -DDEBUG - for some debugging functions in the code (that can be invoked
  67. #        from a debugger).
  68. #
  69.  
  70. #
  71. # Flags for Amiga using gcc
  72. #
  73. CC = gcc
  74. DFLAGS = -Dmain=mymain -DTIMES
  75. CFLAGS = $(DFLAGS) -m68040 -m68881
  76. MORELIBS = $(LIB_DIR)/libamg.a
  77. GRAPDRVS = nuldrvs amidrvs
  78.  
  79. #
  80. # Default rule for compilation.
  81. #
  82. .c.o:
  83.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -c $<
  84.  
  85. #
  86. # All libraries.
  87. LIBS = -L$(LIB_DIR) -lgeom -lprsr -lcagd -lmisc #-lgif
  88. #-----
  89.  
  90. OBJS =  afd_cube.o bsp2poly.o bspboehm.o bspcoxdb.o bsp_gen.o \
  91.     bsp_knot.o bsp_read.o bsp_sym.o bsp_wrt.o bzr_gen.o bzr_read.o \
  92.     bzr_sym.o bzr2poly.o bzr_wrt.o cagd_aux.o cagd_arc.o \
  93.     cagdaiso.o cagdalen.o cagdbbox.o cagdbsum.o cagdcoer.o \
  94.     cagdcmps.o cagdcmpt.o cagdcmrg.o \
  95.     cagdcrvt.o cagdcsrf.o cagddist.o cagdedit.o cagdextr.o cagdmesh.o \
  96.     cagdmorp.o cagdofst.o cagdoslo.o cagdpoly.o cagdpris.o \
  97.     cagdread.o cagdruld.o cagdsmrg.o \
  98.     cagdsrev.o cagdswep.o cagdzero.o cagd_dbg.o cagd_err.o cagd_ftl.o \
  99.     cagd_gen.o cagd_sym.o cagd_tkn.o cagd_wrt.o \
  100.     cbspeval.o cbsp_aux.o cbzreval.o cbzr_aux.o cbzr_pwr.o \
  101.     mshplanr.o sbspeval.o sbsp_aux.o sbzr_aux.o sbzreval.o
  102.  
  103.  
  104. libcagd.a: $(OBJS)
  105.     ar rcv libcagd.a *.o
  106.     -ranlib libcagd.a
  107.  
  108. install: libcagd.a
  109.     Copy CLONE libcagd.a $(LIB_DIR)
  110.     Delete libcagd.a
  111.     Copy cagd_lib.h $(INC_DIR)
  112.  
  113. # Dependencies starts here - do not touch, generated automatically.
  114. afd_cube.o:    cagd_loc.h cagd_lib.h
  115. bsp2poly.o:    cagd_loc.h cagd_lib.h
  116. bsp_gen.o:    cagd_loc.h cagd_lib.h
  117. bsp_knot.o:    cagd_loc.h cagd_lib.h
  118. bsp_read.o:    cagd_loc.h cagd_lib.h
  119. bsp_sym.o:    cagd_loc.h cagd_lib.h
  120. bsp_wrt.o:    cagd_loc.h cagd_lib.h
  121. bspboehm.o:    cagd_loc.h cagd_lib.h
  122. bspcoxdb.o:    cagd_loc.h cagd_lib.h
  123. bzr2poly.o:    cagd_loc.h cagd_lib.h
  124. bzr_gen.o:    cagd_loc.h cagd_lib.h
  125. bzr_read.o:    cagd_loc.h cagd_lib.h
  126. bzr_sym.o:    cagd_loc.h cagd_lib.h
  127. bzr_wrt.o:    cagd_loc.h cagd_lib.h
  128. cagd_arc.o:    cagd_loc.h cagd_lib.h
  129. cagd_aux.o:    cagd_loc.h cagd_lib.h
  130. cagd_dbg.o:    cagd_loc.h cagd_lib.h
  131. cagd_err.o:    cagd_loc.h cagd_lib.h
  132. cagd_ftl.o:    cagd_lib.h
  133. cagd_gen.o:    cagd_loc.h cagd_lib.h
  134. cagd_sym.o:    cagd_loc.h cagd_lib.h
  135. cagd_tkn.o:    cagd_loc.h cagd_lib.h
  136. cagd_wrt.o:    cagd_loc.h cagd_lib.h
  137. cagdaiso.o:    cagd_loc.h cagd_lib.h
  138. cagdalen.o:    cagd_loc.h cagd_lib.h
  139. cagdbbox.o:    cagd_loc.h cagd_lib.h
  140. cagdbsum.o:    cagd_loc.h cagd_lib.h
  141. cagdcmps.o:    cagd_loc.h cagd_lib.h
  142. cagdcmpt.o:    cagd_loc.h cagd_lib.h
  143. cagdcmrg.o:    cagd_loc.h cagd_lib.h
  144. cagdcoer.o:    cagd_loc.h cagd_lib.h
  145. cagdcrvt.o:    cagd_loc.h cagd_lib.h
  146. cagdcsrf.o:    cagd_loc.h cagd_lib.h
  147. cagddist.o:    cagd_loc.h cagd_lib.h
  148. cagdedit.o:    cagd_loc.h cagd_lib.h
  149. cagdextr.o:    cagd_loc.h cagd_lib.h
  150. cagdmesh.o:    cagd_loc.h cagd_lib.h
  151. cagdmorp.o:    cagd_loc.h cagd_lib.h
  152. cagdofst.o:    cagd_loc.h cagd_lib.h
  153. cagdpoly.o:    cagd_loc.h cagd_lib.h
  154. cagdpris.o:    cagd_loc.h cagd_lib.h
  155. cagdread.o:    cagd_loc.h cagd_lib.h
  156. cagdruld.o:    cagd_loc.h cagd_lib.h
  157. cagdsmrg.o:    cagd_loc.h cagd_lib.h
  158. cagdsrev.o:    cagd_loc.h cagd_lib.h
  159. cagdswep.o:    cagd_loc.h cagd_lib.h
  160. cagdzero.o:    cagd_loc.h cagd_lib.h
  161. cbsp_aux.o:    cagd_loc.h cagd_lib.h
  162. cbspeval.o:    cagd_loc.h cagd_lib.h
  163. cbzr_aux.o:    cagd_loc.h cagd_lib.h
  164. cbzr_pwr.o:    cagd_loc.h cagd_lib.h
  165. cbzreval.o:    cagd_loc.h cagd_lib.h
  166. mshplanr.o:    cagd_loc.h cagd_lib.h
  167. sbsp_aux.o:    cagd_loc.h cagd_lib.h
  168. sbspeval.o:    cagd_loc.h cagd_lib.h
  169. sbzr_aux.o:    cagd_loc.h cagd_lib.h
  170. sbzreval.o:    cagd_loc.h cagd_lib.h
  171.